package com.aegean.MonitorExamSYS.tool.action;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.aegean.MonitorExamSYS.examinee.business.ExamineeBusiness;
import com.aegean.MonitorExamSYS.tool.business.ToolBusiness;
import com.aegean.MonitorExaxSYS.model.BigType;
import com.opensymphony.xwork2.ActionSupport;
@Controller("ShowBigListForPublic")
@Scope("prototype")
public class ShowBigList extends ActionSupport {
	@Resource
	ToolBusiness business;
	private List<BigType> bigtypes;
	private int total;
	private int start;
	private int limit;
	public List<BigType> getBigtypes() {
		return bigtypes;
	}
	public void setBigtypes(List<BigType> bigtypes) {
		this.bigtypes = bigtypes;
	}
	public int getTotal() {
		return total;
	}
	public void setTotal(int total) {
		this.total = total;
	}
	public int getStart() {
		return start;
	}
	public void setStart(int start) {
		this.start = start;
	}
	public int getLimit() {
		return limit;
	}
	public void setLimit(int limit) {
		this.limit = limit;
	}
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		total=business.searchBigTypeCount();
	    bigtypes=business.searchPartBigTypes(start, limit);
		return SUCCESS;
	}

}
